package com.draft.controller;

import com.draft.mapper.TestOneTabMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Meng Xu
 * @spec
 * @date 2023-11-20 15:17
 **/
@RestController
@RequestMapping("/testDb")
public class TestDbController {

    @Autowired
    private TestOneTabMapper testOneTabMapper;

    @GetMapping
    public Object testQuery(){
        return testOneTabMapper.selectList(null);
    }
}
